package com.hd.homework0412.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hd.homework0412.dao.CategoryDao;
import com.hd.homework0412.entity.Category;
import com.hd.homework0412.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CategoryServiceImpl extends ServiceImpl<CategoryDao,Category> implements CategoryService {
    @Autowired
    CategoryDao categoryDao;
    @Override
    public List<Category> getAll() {
        return categoryDao.getAll();
    }

    @Override
    public List<Category> getAll0(Integer level) {
        return categoryDao.getAll0(level);
    }
}
